<?php
/*-----------------------------------------------------------------------------------*/  
/*------------------	        Blue Heading                           --------------*/
/*-----------------------------------------------------------------------------------*/
function blue_heading($atts, $content = '') {
	return '<h3 class="title">'.$content.'</h3>';
}

add_shortcode('blue_title', 'blue_heading');



/*-----------------------------------------------------------------------------------*/  
/*------------------	        Blockquote                             --------------*/
/*-----------------------------------------------------------------------------------*/
function blockquote($atts, $content = '') {
	extract(shortcode_atts(array(
		"type" => 'none'
	), $atts));
	
	$q_class = '';
	
	if($type == 'round') { $q_class = 'round-style'; }
	
	return '<blockquote class="'.$q_class.'"><p>'.$content.'</p></blockquote>';
}

add_shortcode('quote', 'blockquote');


/*-----------------------------------------------------------------------------------*/  
/*------------------	        Accordion                              --------------*/
/*-----------------------------------------------------------------------------------*/
function accordion_wrap($atts, $content = '') {
	return '<ul class="accordian">'.do_shortcode($content).'</ul>';
}

add_shortcode('accordion_wrap', 'accordion_wrap');


function accordion_item($atts, $content = '') {
	extract(shortcode_atts(array(
		'title' => '',
		'opened' => 'false'
	), $atts));
	
	$a_class = '';
	
	if($opened == 'true') { $a_class = 'active'; } 
	
	return '<li class="'.$a_class.'"><h5>'.$title.'<span class="slide-arrow"></span></h5><p>'.do_shortcode($content).'</p></li>';
}

add_shortcode('accordion_item', 'accordion_item');


 /*-----------------------------------------------------------------------------------*/  
/*------------------	        Columns                                 --------------*/
/*-----------------------------------------------------------------------------------*/
// columns wrapper
function show_columns($atts, $content = null) {
	return '<div class="columns">'.do_shortcode($content).'</div>';
}
add_shortcode('columns', 'show_columns');


// one third column
function show_one_third($atts, $content = null) {
	return '<div class="one-third">'.do_shortcode($content).'</div>';
}
add_shortcode('one_third', 'show_one_third');


// two third column
function show_two_third($atts, $content = null) {
	return '<div class="two-third">'.do_shortcode($content).'</div>';
}
add_shortcode('two_third', 'show_two_third');


// one fourth column
function show_one_fourth($atts, $content = null) {
	return '<div class="one-fourth">'.do_shortcode($content).'</div>';
}
add_shortcode('one_fourth', 'show_one_fourth');


// three fourth column
function show_three_fourth($atts, $content = null) {
	return '<div class="three-fourth">'.do_shortcode($content).'</div>';
}
add_shortcode('three_fourth', 'show_three_fourth');


// two column
function show_two_column($atts, $content = null) {
	return '<div class="two-cols">'.do_shortcode($content).'</div>';
}
add_shortcode('two_column', 'show_two_column');


// single column
function show_single_column($atts, $content = null) {
	return '<div class="single-col">'.do_shortcode($content).'</div>';
}
add_shortcode('single_column', 'show_single_column');




